/*
 * Copyright (c) 2023, 2023,yzc.cn All rights reserved.
 *
 */
package cn.yzc.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * <p>Project: SpringColud - GoodController</p>
 * <p>Powered by yzc On 2023-12-29 14:23:33</p>
 * <p>描述：<p>
 *
 * @author yzc [yzc0415@126.com]
 * @version 1.0
 * @since 17
 */
@RestController
public class GoodController {

    @GetMapping("/goods")
    public Map updateStock(String id){
        System.out.println("更新库存"+id);
        Map map = new HashMap<>();
        map.put("id",id);
        map.put("code",200);
        map.put("meg","库存更新成功");
        return map;
    }
}
